﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Model_SSResourceManager;

namespace SSRMmonitor
{
    public partial class DbConnectSettingsView : Form
    {
        private ConnectSettingsManager connectManager = new ConnectSettingsManager();
        private ConnectSettingsModel m_connectSettings ;

        private string[] NetworkType = {"Shared Memory","TCP/IP"};

        public DbConnectSettingsView()
        {
            m_connectSettings = connectManager.Get();

            InitializeComponent();

            InitTxt();
        }

        private void InitTxt()
        {
            txtServer.Text = m_connectSettings.Server;
            cmbNetwork.DataSource = NetworkType;
        }
        
    }
}
